package com.ruoyi.gcgl.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.gcgl.domain.YyBiddingitem;
import com.ruoyi.gcgl.mapper.YyBiddingitemMapper;
import com.ruoyi.gcgl.service.IYyBiddingitemService;

/**
 * 投标管理项Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-12
 */
@Service
public class YyBiddingitemServiceImpl implements IYyBiddingitemService 
{
    @Autowired
    private YyBiddingitemMapper sjBiddingitemMapper;

    /**
     * 查询投标管理项
     * 
     * @param id 投标管理项主键
     * @return 投标管理项
     */
    @Override
    public YyBiddingitem selectSjBiddingitemById(Long id)
    {
        return sjBiddingitemMapper.selectSjBiddingitemById(id);
    }

    /**
     * 查询投标管理项列表
     * 
     * @param sjBiddingitem 投标管理项
     * @return 投标管理项
     */
    @Override
    public List<YyBiddingitem> selectSjBiddingitemList(YyBiddingitem sjBiddingitem)
    {
        return sjBiddingitemMapper.selectSjBiddingitemList(sjBiddingitem);
    }

    /**
     * 新增投标管理项
     * 
     * @param sjBiddingitem 投标管理项
     * @return 结果
     */
    @Override
    public int insertSjBiddingitem(YyBiddingitem sjBiddingitem)
    {
        return sjBiddingitemMapper.insertSjBiddingitem(sjBiddingitem);
    }

    /**
     * 修改投标管理项
     * 
     * @param sjBiddingitem 投标管理项
     * @return 结果
     */
    @Override
    public int updateSjBiddingitem(YyBiddingitem sjBiddingitem)
    {
        return sjBiddingitemMapper.updateSjBiddingitem(sjBiddingitem);
    }

    /**
     * 批量删除投标管理项
     * 
     * @param ids 需要删除的投标管理项主键
     * @return 结果
     */
    @Override
    public int deleteSjBiddingitemByIds(String ids)
    {
        return sjBiddingitemMapper.deleteSjBiddingitemByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除投标管理项信息
     * 
     * @param id 投标管理项主键
     * @return 结果
     */
    @Override
    public int deleteSjBiddingitemById(Long id){
        return sjBiddingitemMapper.deleteSjBiddingitemById(id);
    }

	@Override
	public int deleteSjBiddingitemBy4BId(Long id) {
		return sjBiddingitemMapper.deleteSjBiddingitemBy4BId(id);
	}
}